﻿package com.bizmlib.framework.flashapp.mvc
{
	import com.bizmlib.framework.abstract.mvc.AbstractController;
	import com.bizmlib.framework.abstract.mvc.AbstractView;
	import com.bizmlib.framework.flashapp;
	import com.bizmlib.framework.flashapp.mvc.FlashAppModel;
	import com.bizmlib.framework.flashapp.mvc.FlashAppView;
	
	
	public class FlashAppController extends AbstractController
	{
	
	
		public function FlashAppController(siteView:FlashAppView)
		{
			super(siteView);
		}
		
		/**
		flashapp public function get model():FlashAppModel
		{
			return super.model as FlashAppModel;
		}
		flashapp public function get view():FlashAppView
		{
			return super.view as FlashAppView;
		}
		/**/
		
		
		/**
		 * Invoked from a FlashAppEngine's afterStartUp method after an application has successfully started up.
		 * Feel free to override it. It could be a good place for you to start making your own calls.
		 */
		public function startUp():void
		{
		}
		
		
		override public function toString():String
		{
			return "[com.bizmlib.framework.flashapp.mvc.FlashAppController]";
		}
	
	
		override protected function subscribeToViewEvents():void
		{
			//trace(this + ".subscribeToViewEvents()");
			
			super.subscribeToViewEvents();
		}
	
	}
}